﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;
using System.Data.EntityClient;
using Data.Entities;

namespace Data
{
    public class Model : ObjectContext
    {
        public Model(EntityConnection entityConnection)
            : base(entityConnection)
        {
            DefaultContainerName = "Model";

        }
        public IObjectSet<Person> People
        {
            get { return base.CreateObjectSet<Person>(); }
        }
        public IObjectSet<BankAccount> BankAccounts
        {
            get { return base.CreateObjectSet<BankAccount>(); }
        }


    }
}
